package cn.xizikelif.basic.controller;

import cn.xizikelif.basic.util.AjaxResult;
import cn.xizikelif.org.domain.Shop;
import cn.xizikelif.org.service.IShopService;
import cn.xizikelif.org.vo.ShopAhartsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/aharts")
public class EchartController {
    @Autowired
    private IShopService iShopService;

    /**
     * 获取店铺报表数据
     * @return
     */
    @GetMapping()
    public ShopAhartsVo aharts(){
        return iShopService.aharts();
    }
}
